<template>
  <div id="top">
    <div class="ads_info" @click="fun()">{{ newaddress }} <b></b></div>
    <div class="ico">
      <span class="iconfont icon-gouwuche" @click="gocart()"></span>
      <span class="iconfont icon-eliaomadingdanguanli---"></span>
    </div>
  </div>
</template>

<script>
export default {
  computed: {
    newaddress() {
      return this.$store.state.address;
    },
  },
  methods: {
    fun() {
      this.$router.push("/address_choice");
    },
    gocart() {
      this.$router.push("/foodcart");
    },
  },
};
</script>

<style scoped>
#top {
  height: 0.54rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}
.ads_info {
  font-size: 0.16rem;
  font-weight: 700;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
b {
  width: 0;
  height: 0;
  display: block;
  border-top: 0.06rem solid black;
  border-left: 0.04rem solid transparent;
  border-right: 0.04rem solid transparent;
  border-bottom: 0.06rem solid transparent;
  position: relative;
  top: 0.05rem;
  left: 0.04rem;
}
.ico {
  width: 1rem;
  height: 0.3rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
span {
  font-size: 0.3rem;
  font-weight: 700;
}
.icon-eliaomadingdanguanli--- {
  font-size: 0.22rem;
}
</style>